package com.itqf.Service.Topicsynthesis.impl;

import com.itqf.Dao.SubjectMapper;
import com.itqf.Dao.TopicstageMapper;
import com.itqf.Dao.TopicsynthesisMapper;
import com.itqf.Service.Topicsynthesis.TopicsynthesisService;
import com.itqf.entity.Subject;
import com.itqf.entity.Topicstage;
import com.itqf.entity.Topicsynthesis;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional
public class TopicsynthesisServiceImpl implements TopicsynthesisService {
    @Resource
    private TopicstageMapper topicstageMapper;
@Resource
private TopicsynthesisMapper topicsynthesisMapper;
@Resource
private SubjectMapper subjectMapper;
    @Override
    public List<Topicsynthesis> findtopicsynthesisList() {
        return topicsynthesisMapper.findtopicsynthesisList();
    }
//查寻所有科目
    @Override
    public List<Subject> findsubjectlist() {
        return  subjectMapper.findall();
    }

    @Override
    public List<Topicstage> findtopicstageList() {
        return topicstageMapper.findlist();
    }
}
